package com.hetwen.search.http;

import com.hetwen.search.log.Logger;

public class ResponseHandler implements IResponseHandler {

	private static final String TAG = "ResponseHandler";
	
	@Override
	public <T> void onSuccess(String response, T t) {
		if(response!=null){
			Logger.getInstance().i(TAG, response);
		}
	}

	@Override
	public void onFailure(String errorcode, String msg) {
		if(errorcode!=null){
			Logger.getInstance().i(TAG, "errorcode:"+errorcode+" msg:"+msg);
		}
	}

}
